package com.perfect.mybatis.services;

import com.perfect.mybatis.mapper.OrderMapper;
import com.perfect.mybatis.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

/**
 * @author chenshiping
 * @date 2025/3/14
 * @description TODO
 */
@Component
public class UserServiceImpl {

    @Autowired
    @Lazy
    private UserMapper userMapper;

    @Autowired
    @Lazy
    private OrderMapper orderMapper;

    public String selectUserName(){
        return userMapper.selectUserName();
    }

    public String selectNow(){
        return orderMapper.selectNow();
    }
}
